package com.example.makerspace.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.makerspace.domain.CompetitionDO;
import com.example.makerspace.domain.QuestionsCategoryDO;
import com.example.makerspace.domain.QuestionsTypeDO;
import com.example.makerspace.dto.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface CompetitionService {
    Result checkCompetition(HttpServletRequest request,Integer id);


    Result save(CompetitionDTO competitionDTO,String username);

    IPage<CompetitionDO> selectByCondition(PageRequest pageRequest);

    Result saveQuestionsCategory(CompetitionCategoryDTO competitionCategoryDTO);

    IPage<CompetitionDO> designateQuery(PageRequest pageRequest);

    Result updateQuestionsCategory(CompetitionCategoryDTO competitionCategoryDTO);

    Result deleteQuestionsCategory(CompetitionCategoryDTO competitionCategoryDTO);

    Result competitionChangeRecord(HttpServletRequest request, Integer competitionId);

    Result showQuestionsType();

    Result updateQuestionsType(QuestionsTypeDO questionsTypeDO);

    Result deleteQuestionsType(QuestionsTypeDO questionsTypeDO);

    Result addQuestionsType(QuestionsTypeDO questionsTypeDO);

    Result questionsProcessStatus(HttpServletRequest request, Integer competitionId);

    Result selectCompetitionChangeRecord(Integer competitionId,String username);
}
